第2步:让我们定义创建邀请的函数!

之后,我们将更改背景图片,使其符合邀请函。

  • 点击 ,将 Define Function with Parameters 拖动到程序中。
  • 将函数的名称更改为 draw_card
  • 点击 ,将 Set Background 拖动到函数内部,让它的前面有一个 ····

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)